<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body id="content">
		<script>
			function Person(nation,skinColor){
				this.nation=nation;
				this.skinColor=skinColor;
			}
			Person.prototype.showNation=function(){
				return(this.nation);
			}
			Person.prototype.showSkinColor=function(){
				return(this.skinColor);
			}
			function Woman(nation,skinColor,sex){
				Person.call(this,nation,skinColor);
				this.sex=sex;
			}
			Woman.prototype=new Person();
			Woman.prototype.showSex=function(){
				return(this.sex);
			}
			var woman1=new Woman("汉族","黄色","女");
			var pc=document.createElement("p");
			pc.innerHTML="民族："+woman1.showNation()+"<br/>肤色："+woman1.showSkinColor()+"<br/>性别："+woman1.showSex();
			var content=document.getElementById("content");
			content.appendChild(pc);
		</script>
	</body>
</html>
